package model;

import java.util.ArrayList;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Unindexed;

@Cached
public class Tags {
	@Id private String alias = "";
	@Unindexed private String name = "";
	@Unindexed private ArrayList<String> listNews = new ArrayList<String>();
	
	public ArrayList<String> getListNews() {
		return listNews;
	}
	public void setListNews(ArrayList<String> listNews) {
		this.listNews = listNews;
	}
	public String getAlias() {
		return alias;
	}
	public void setAlias(String alias) {
		this.alias = alias;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void addListnews(String alias) {
		if(!this.listNews.contains(alias))
			this.listNews.add(alias);
	}
}
